package 面向对象中级.课堂练习.Exercise04;

public class Test {
    //创建三个类的对象，并调用相应的方法进行测试
    public static void main(String[] args) {
        Person person = new Person("张三",34,'男');
        person.getInfo();

        Student student = new Student("张三",34,'男',89);
        student.getInfo();

        Teacher teacher = new Teacher("张三",34,'男',5000);
        teacher.getInfo();
    }
}
